package com.david.common.utils;

import org.apache.commons.lang3.RandomStringUtils;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Random;

public class BatchNoUtils {

    public static String createBatchNo(String prefix) {
        return prefix.concat(LocalDate.now().format(DateTimeFormatter.ofPattern("yyMMdd"))).concat(RandomStringUtils.randomAlphabetic(4));
    }
}
